import type { OrderDetail, RateParams } from '@/types/room'
import { request } from '@/utils/request'

export const orderDetailApi = (id: string) => {
  return request.get<null, OrderDetail>(`/patient/consult/order/detail?orderId=${id}`)
}

/**
 * 评价医生
 */
export const evaluateDoctorApi = (data: RateParams) => {
  return request.post('/patient/order/evaluate', data)
}
